<?php

use yii\helpers\Html;


/* @var $this yii\web\View */
/* @var $model backend\models\JjrUserCommission */

$this->title = '是否马上结佣?';
$this->params['breadcrumbs'][] = ['label' => 'Jjr User Commissions', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="jjr-user-commission-create">

    <h1><?= Html::encode($this->title) ?></h1>

    <?= $this->render('_form', [
        'model' => $model,'project'=>$project,'user'=>$user,'userProject'=>$userProject
    ]) ?>

</div>


<script>
    <?php $this->beginBlock('js_end') ?>

    // $(function () {
    //     jQuery('#commission-form').on('beforeSubmit', function (e) {
    //         alert(123);
    //         var $form = $(this);
    //         $.ajax({
    //             url: $form.attr('action'),
    //             type: 'post',
    //             data: $form.serialize(),
    //             success: function (data) {
    //                 // do something
    //             }
    //         });
    //     })
    // })

    <?php $this->endBlock(); ?>
</script>
<?php $this->registerJs($this->blocks['js_end'],\yii\web\View::POS_LOAD);



